package com.bill99.codecheck.sonar.orm.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.util.StringUtils;

public class RnmItem implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;
	private String filePath;
	private Long reversion;
	private String author;
	private Date createTime;
	private Date lastUpdateTime;
	private Long releaseNoteId;
	private String svnPath;
	private String tempfilePath; //服务器临时文件路径
	private String sonarjobName;
	private String buildPath; //build.xml 存放路径
	private String dealbuildxmlPath; //触发buildxml路径
	private String errMsg;
	private String infoMsg;
	private String tranEncodePath;//转码文件路径

	private String releaseId;

	public String getTranEncodePath() {
		return tranEncodePath;
	}

	public void setTranEncodePath(String tranEncodePath) {
		this.tranEncodePath = tranEncodePath;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

	public String getInfoMsg() {
		return infoMsg;
	}

	public void setInfoMsg(String infoMsg) {
		this.infoMsg = infoMsg;
	}

	public String getDealbuildxmlPath() {
		return dealbuildxmlPath;
	}

	public void setDealbuildxmlPath(String dealbuildxmlPath) {
		this.dealbuildxmlPath = dealbuildxmlPath;
	}

	public String getBuildPath() {
		return buildPath;
	}

	public void setBuildPath(String buildPath) {
		this.buildPath = buildPath;
	}

	public String getSonarjobName() {
		return sonarjobName;
	}

	public void setSonarjobName(String sonarjobName) {
		this.sonarjobName = sonarjobName;
	}

	public String getSvnPath() {
		return svnPath;
	}

	public void setSvnPath(String svnPath) {
		this.svnPath = svnPath;
	}

	public String getTempfilePath() {
		return tempfilePath;
	}

	public void setTempfilePath(String tempfilePath) {
		this.tempfilePath = tempfilePath;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFilePath() {
		if (StringUtils.hasLength(filePath)) {
			return filePath.trim();
		}
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public Long getReversion() {
		return reversion;
	}

	public void setReversion(Long reversion) {
		this.reversion = reversion;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Long getReleaseNoteId() {
		return releaseNoteId;
	}

	public void setReleaseNoteId(Long releaseNoteId) {
		this.releaseNoteId = releaseNoteId;
	}

	public String getReleaseId() {
		return releaseId;
	}

	public void setReleaseId(String releaseId) {
		this.releaseId = releaseId;
	}

}
